package com.joshondesign.sdljava.gfx;

import com.joshondesign.sdljava.SDL_Surface;

/**
 * Created by IntelliJ IDEA.
 * User: josh
 * Date: 9/10/11
 * Time: 10:02 AM
 * To change this template use File | Settings | File Templates.
 */
public class SBuffer {
    SDL_Surface _surface;
    private int width;
    private int height;

    public SBuffer(SDL_Surface surface, int width, int height) {
        this._surface = surface;
        this.width = width;
        this.height = height;
    }

    public GFX createGFX() {
        return new JavaExtendedGFX(this._surface);
    }

    public SDL_Surface getNative() {
        return _surface;
    }

    public int getWidth() {
        return width;
    }

    public int getHeight() {
        return height;
    }
}
